package com.yaorange.module.association.mapper;

import com.yaorange.pojo.BsAssociation;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface AssociationInfoMapper {
    @Insert("insert into bs_association(introduction,structure,statutes,contact,significance,application_form,del_flag) values(#{introduction},#{structure},#{statutes},#{contact},#{significance},#{applicationForm},#{delFlag})")
    void insertInfo(BsAssociation bsAssociation);

    @Select("select * from bs_association where id = 1")
    BsAssociation getOne();

    @Update("update bs_association set introduction = #{introduction},structure = #{structure},statutes = #{statutes},contact = #{contact},significance = #{significance},application_form = #{applicationForm},del_flag = #{delFlag} where id = 1")
    void updateInfo(BsAssociation bsAssociation);
}
